package com.ruoyi.front_desk.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.front_desk.frontdeskrepresentingappearance.domain.FrontdeskRepresentingAppearance;
import com.ruoyi.front_desk.frontdeskrepresentingappearance.mapper.FrontdeskRepresentingAppearanceMapper;
import com.ruoyi.management_controller.RepresentingAppearance.domain.RepresentingAppearance;
import com.ruoyi.management_controller.RepresentingAppearance.service.IRepresentingAppearanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 刘奥旸
 * @version 1.0
 */
@RestController
@RequestMapping("/representing")
public class Frontdeskrepresentingappearance extends BaseController {

    @Autowired
    private IRepresentingAppearanceService representingAppearanceService;

    @Autowired
    private FrontdeskRepresentingAppearanceMapper frontdeskRepresentingAppearanceMapper;


    @GetMapping("/list")
    public List<FrontdeskRepresentingAppearance> list(@RequestParam String id)
    {
        List<FrontdeskRepresentingAppearance> frontdeskRepresentingAppearances = frontdeskRepresentingAppearanceMapper.selectByStreetId(id);
        return frontdeskRepresentingAppearances;

    }
}
